package cn.neusoft.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxj
 * @since 2024-12-11
 */
@TableName("t_orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 订单编号(有生成策略)
     */
    private String orderNumber;

    /**
     * 所属用户编号
     */
    private Integer userId;

    /**
     * 所属商家编号
     */
    private Integer businessId;

    /**
     * 下单时间
     */
    private LocalDateTime orderDate;

    /**
     * 订单总价
     */
    private BigDecimal orderTotal;

    /**
     * 所属送货地址编号
     */
    private Integer addressId;

    /**
     * 订单状态(0 未支付，1 已支付)
     */
    private Integer orderState;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }
    public LocalDateTime getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(LocalDateTime orderDate) {
        this.orderDate = orderDate;
    }
    public BigDecimal getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(BigDecimal orderTotal) {
        this.orderTotal = orderTotal;
    }
    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }
    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    @Override
    public String toString() {
        return "Orders{" +
            "orderId=" + orderId +
            ", orderNumber=" + orderNumber +
            ", userId=" + userId +
            ", businessId=" + businessId +
            ", orderDate=" + orderDate +
            ", orderTotal=" + orderTotal +
            ", addressId=" + addressId +
            ", orderState=" + orderState +
        "}";
    }
}
